package com.wh.wisdomsite.xbox.ba.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户日志实体
 * @author 刘旭
 * @version V1.0
 * @Package com.wh.wisdomsite.xbox.ba.entity
 * @date 2018年10月29日 16:50
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2018
 */
@TableName("ba_sysUserLog")
public class SysUserLog extends Model<SysUserLog> {

    /**
     * 用户日志id
     */
    @TableId(type = IdType.UUID)
    private String uslId;

    /**
     * 日志代码，系统定义唯一(regist,login,loginOut,updatePwd,)
     */
    @TableField("uslCode")
    private String uslCode;

    /**
     * 请求地址
     */
    @TableField("reqUrl")
    private String reqUrl;

    /**
     * 请求参数
     */
    @TableField("params")
    private String params;

    /**
     * 用户ip
     */
    @TableField("userIp")
    private String userIp;

    /**
     * 用户代理
     */
    @TableField("userAgent")
    private String userAgent;

    /**
     * 配置人
     */
    @TableField("createBy")
    private String createBy;

    /**
     * 配置时间
     */
    @TableField("createDate")
    private Date createDate;

    /**
     * 异常信息
     */
    @TableField("exception")
    private String exception;

    public String getUslId() {
        return uslId;
    }

    public void setUslId(String uslId) {
        this.uslId = uslId;
    }

    public String getUslCode() {
        return uslCode;
    }

    public void setUslCode(String uslCode) {
        this.uslCode = uslCode;
    }

    public String getReqUrl() {
        return reqUrl;
    }

    public void setReqUrl(String reqUrl) {
        this.reqUrl = reqUrl;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    @Override
    protected Serializable pkVal() {
        return uslId;
    }
}
